<include file="Common/common" />

<body>
	<div class="layui-tab-item layui-show">
		<div class="layui-main">
			<br>
			<div style="overflow-x: auto;">
				<table class="layui-table" style=" color: rgb(240,222,112);" >
					<thead>
							<tr style="background: rgb(57,61,73)">
								<th>公告编号</th>
								<th>标题</th>
								<th>发布时间</th>
								<th>操作</th>
							</tr> 
						</thead>
						<tbody>
							<foreach name="newsList" item="vo">
								<tr style="background: #7d7d7d;color:rgb(240,222,112);">
									<td>{$vo['id']}</td>
									<td>{$vo['title']}</td>
									<td><?php echo date('Y-m-d H:i:s',$vo['createtime']) ?></td>
									<td>
										<button  style="color: rgb(240,222,112);background: rgb(57,61,73);font-size: 16px" 	 class="layui-btn layui-btn-sm" title="查看公告" onclick="fun_news(this,{$vo['id']},'{$vo['title']}')"><i class="layui-icon">&#xe705;</i></button>
									</td>
								</tr>
							</foreach>
						</tbody>
				</table>
			</div>
			<div class="green-black">{$page}</div>
		</div>
	</div>
</body>

<script type="text/javascript">
	//查看新闻
	function fun_news(obj,id,name){
		layer.open({
			type: 2,
			title: name,
			shadeClose: true,
			shade: 0.8,
			scrollbar: false,
			area: ['100%', '100%'],
			content: "/Feedback/newsDetail?id="+id //iframe的url
		});
	}
</script>
<include file="Common/footer" />